<template>
  <div>
    <van-overlay :show="show">
      <div class="cardView">
        <p class="nameLabel">该数据为样板数据，如需使用企业大学<br>功能请前往升级套餐</p>
        <van-button type="default" round color="linear-gradient(to right, #1DA1F2, #3ECFFA)" class="upgradeBtn"  @click="upgradeClick">
          前往升级
        </van-button>
      </div>
    </van-overlay>
  </div>
</template>

<script>
  // import Vue from 'vue'
  import {Overlay, Button} from 'vant'

  Vue.use(Overlay, Button)

  export default {
    name: "LevelCover",
    props: {
      show: {
        type: Boolean,
        default: false
      }
    },
    computed: {
      showCover () {
        return this.show
      }
    },
    methods: {
      upgradeClick() {
        this.$_router.push('/package-list')
      }

    }
  }
</script>

<style scoped>
  .cardView {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .nameLabel {
    font-size: 16px;
    color: white;
    font-weight: bold;
    text-align: center;
  }
  .upgradeBtn {
    margin-top: 24px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    height: 48px;
    width: 180px;

  }


</style>
